<%--
	* Copyright: coolmoon Software Design Co,.ltd
	* Created on 2013-6-9-上午10:53:00
	* @author lenovo
	* JSP页面功能描述: 
	
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>注册登录</title>
	<link href="${pageContext.request.contextPath}/stylesheets/register.css" rel="stylesheet" type="text/css"/>
	<!-- script代码 -->
	<script type="text/javascript">
	<!--
		var orgNameExist = false;
		//检查公司账户名称是否已存在
		function checkOrgName()
		{
			var orgName = $("#org_name_").val();
			if(orgName == null||trim(orgName) == "")
			{
				$("#tip_orgname").text("公司账号名称不能为空！");
				return;
			}
			$.ajax({
				type: "POST",
				url: "${pageContext.request.contextPath}/realEstate/userManage/checkOrgNameExist.html",
				data: {orgName:orgName},
				dataType:"text",
				success: function(msg){
					var result = eval("(" + msg + ")");
					orgNameExist = result.exist;
					if(!result.exist)
					{
						$("#tip_orgname").text("请先注册公司账户！");
					}
				},
				error:function(request, textStatus, errorThrown){
					
				}
			});
		}
	//-->
	</script>
</head>
<body>

<%--正文开始--%>
	<!-- logo e -->
	<div id="wrapper" class="clearfix v5_user_register" style="margin-top:70px;">
		<!--reg start-->
		<div class="login-div clearfix">
			<h4 class="reg-title">快速注册，发布、管理信息更轻松</h4>
			<div class="reg-left fl">
		    	<form action="${pageContext.request.contextPath}/realEstate/userManage/regist.html" method="post" id="registerform">
		    		<input type="hidden" name="Constant_Duplicate_Submission_KEY_" value="${Constant_Duplicate_Submission_KEY_}"/>
		            <span style="color: red;">${msg}</span>
		            <div class="reg-field">
		            	<label for="org_name_">公司账号：</label>
		            	<input value="" id="org_name_" name="org_name_" type="text" class="input-text" onblur="checkOrgName();"/>
		            	<span id="tip_orgname"></span>
		            </div>
		            <div class="reg-field">
		                <label for="login_name_">用户名：</label>
		                <input value="" name="login_name_" type="text" class="input-text" />
		                <span id="tip_username"></span>
		                <input type="hidden" name="next" value="" />
		                <input type="hidden" name="second" value="" />
		            </div>
		            <div class="reg-field">
		                <label for="password_">密码：</label>
		                <input value="" name="password_" type="password" class="input-text" />
		                <span id="tip_password"></span>
		            </div>
		            <div class="reg-field">
		                <label for="confirm-password">确认密码：</label>
		                <input value="" name="password2" type="password" class="input-text" />
		                <span id="tip_password2"></span>
		            </div>
		            <div class="reg-field">
		                <label for="real_name_">姓名：</label>
		                <input value="" name="real_name_" type="text" class="input-text" />
		                <span id="tip_realname"></span>
		            </div>
		            <div class="reg-field">
		                <label for="phone_num">联系电话：</label>
		                <input value="" name="phone_num" type="text" class="input-text" />
		                <span id="tip_phonenum"></span>
		            </div>
		            <div class="reg-field">
		                <label for="email">电子邮箱：</label>
		                <input value="" name="email" type="text" class="input-text" />
		                <span id="tip_email"></span>
		            </div>
		            <div class="reg-field">
						<label>上传图片：</label>
						<input type="file" name="person_image" style="width:260px;height:26px;"	/>
					</div>
		            <div class="reg-submit" id="reg-submit">
		                <input type="submit" value="立即注册" id="reg_submit" class="reg-btn"/><a href="${pageContext.request.contextPath}/realEstate/login.wf" class="login-btn" id="login-submit">登录</a>
		            </div>
		            <div style="display:none" class="reg-submit" id="reg-msg"><span class="fc-red">正在提交···</span></div>
		        </form>
			</div>
		</div>
		<!--reg end-->
	</div>
<%--正文结束--%>

</body>
</html>